package cn.com.myshiro.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.myshiro.bean.Sysuser;
import  cn.com.myshiro.dao.SysuserDao;

@Service
 public class SysuserService {


   @Autowired
   SysuserDao dao;


   public List<Sysuser> allSysuser(Map<Object,Object> map){
	     return dao.allSysuser(map);
   }

   public void delSysuser(int id){
	   dao.delSysuser(id);
   }

   public Sysuser sysuser(int id){
	   return dao.sysuser(id);
   }

   public void updateSysuser(Sysuser sysuser){
	   dao.updateSysuser(sysuser);
   }

   public void addSysuser(Sysuser sysuser){
   	dao.addSysuser(sysuser);
   }

	public int countSysuser(){
		return dao.countSysuser();
	}
	
	public Sysuser sysuserBycode(String usercode){
		   return dao.sysuserBycode(usercode);
	   }
}
